package com.example.sonone.service.impl;

import com.example.sonone.dao.TestDao;
import com.example.sonone.dao.TestDao2;
import com.example.sonone.service.TestService;
import com.example.sonone.service.TestService2;
import com.example.sonone.util.ExcelUtil;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class TestServiceImpl2 implements TestService2 {

    @Autowired
    private TestDao2 testDao;


    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void insert(Map<String, String> map) {
        testDao.insetShiwu2();
//        int i = 1 / 0;
    }
}
